package com.vf.admin.client.service;

import com.vf.admin.miaodong.entity.AppCzMoney;
import com.vf.admin.miaodong.entity.AppOrder;
import com.vf.admin.miaodong.entity.AppUser;

/**
 * 支付宝充值
 */
public interface ApiAlipayService {
    /**
     * 支付宝支付宝预下单
     * @param user  充值用户
     * @return
     */
    public String diamondRechargeAlipay(AppUser user, AppCzMoney czMoney);

    /**
     * 支付宝回调
     * @param out_trade_no 平台自定义订单号
     * @param total_fee      实际支付金额
     * @param appOrder      订单对象
     * @return
     */
    public boolean notifyUrl(String out_trade_no, Double total_fee, AppOrder appOrder);

    /**
     * 支付宝支付预下单H5
     * @param user  充值用户
     * @return
     */
    public String diamondRechargeAlipayByWeb(AppUser user, AppCzMoney czMoney);
}
